package com.workstudy.workstudy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.workstudy.common.annotation.Excel;
import com.workstudy.common.core.domain.BaseEntity;

/**
 * 工资对象 workstudy_wage
 * 
 * @author ws
 * @date 2021-03-28
 */
public class WorkstudyWage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工资id */
    private Long wageId;

    /** 学生id */
    @Excel(name = "学生id")
    private Long userId;

    /** 工作总时长 */
    @Excel(name = "工作总时长")
    private BigDecimal sumduration;

    /** 总工资 */
    @Excel(name = "总工资")
    private BigDecimal sumprice;

    /** 结算人 */
    @Excel(name = "结算人")
    private String settlementBy;

    private String loginName;

    private String userName;

    /** 结算时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "结算时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date settlementTime;

    public void setWageId(Long wageId) 
    {
        this.wageId = wageId;
    }

    public Long getWageId() 
    {
        return wageId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSumduration(BigDecimal sumduration) 
    {
        this.sumduration = sumduration;
    }

    public BigDecimal getSumduration() 
    {
        return sumduration;
    }
    public void setSumprice(BigDecimal sumprice) 
    {
        this.sumprice = sumprice;
    }

    public BigDecimal getSumprice() 
    {
        return sumprice;
    }
    public void setSettlementBy(String settlementBy) 
    {
        this.settlementBy = settlementBy;
    }

    public String getSettlementBy() 
    {
        return settlementBy;
    }
    public void setSettlementTime(Date settlementTime) 
    {
        this.settlementTime = settlementTime;
    }

    public Date getSettlementTime() 
    {
        return settlementTime;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wageId", getWageId())
            .append("userId", getUserId())
            .append("sumduration", getSumduration())
            .append("sumprice", getSumprice())
            .append("settlementBy", getSettlementBy())
            .append("settlementTime", getSettlementTime())
                .append("userName", getUserName())
                .append("loginName", getLoginName())
            .toString();
    }
}
